package yjj.system.controller;


import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import yjj.model.web.Result;
import yjj.system.service.DepartmentService;

@RestController
@Tag(name = "部门管理")
@RequestMapping("/departs")
public class DepartmentController {
    @Autowired
    DepartmentService departmentService;

    @GetMapping("/combined")
    public Result list() {
        return Result.success(departmentService.listCombina());
    }


}
